package ksic.lookdom.dao;
import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
		
import ksic.lookdom.vo.Lookd_BizDetailVo;
import ksic.lookdom.vo.Lookd_BizmasterVo;
import ksic.lookdom.vo.Lookd_UserVo;

public class LookdomDaoImpl extends SqlSessionDaoSupport implements LookdomDao{

	public Lookd_UserVo loginDao(String id) {
		return getSqlSession().selectOne("lookdom.login", id);
	}

	public void signUp(String id) {
		getSqlSession().insert("lookdom.signUp", id);
	}

	public void signUpDao(Lookd_UserVo lookd_UserVo) {
		getSqlSession().insert("lookdom.signUp2", lookd_UserVo);
	}

	public void bizDao(Lookd_BizmasterVo lookd_bizVo) {
		getSqlSession().insert("lookdom.biz", lookd_bizVo);
	}

	public List<Lookd_BizmasterVo> bizListDao() {
		return getSqlSession().selectList("lookdom.bizList");
	}

	public Lookd_BizDetailVo bizDetailDao(String bizcd) {
		return getSqlSession().selectOne("lookdom.getBizDetil", bizcd);
	}

	public String login(String id) {
		return getSqlSession().selectOne("lookdom.login", id);
	}

	
}
